{include file="public/header" /}
<blockquote class="layui-elem-quote">
    我的基本资料
</blockquote>
<div class="layui-raw">
    <div class="layui-col-xs12 layui-col-sm10 layui-col-md8 layui-col-lg6 layui-col-xl5">
        <form class="layui-form layui-form-pane kllxs-form" method="post">
            <div class="layui-form-item">
                <label class="layui-form-label">旧密码</label>
                <div class="layui-input-block">
                    <input type="password" lay-affix="eye" name="oldPwd" autocomplete="off" placeholder="请输入旧密码"
                        class="layui-input" value="">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">新密码</label>
                <div class="layui-input-block">
                    <input type="password" lay-affix="eye" name="newPwd" autocomplete="off" placeholder="请输入新密码"
                        class="layui-input" value="">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">确认新密码</label>
                <div class="layui-input-block">
                    <input type="password" lay-affix="eye" name="verifyPwd" autocomplete="off" placeholder="请输入确认新密码"
                        class="layui-input" value="">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-inlink">
                    <button class="layui-btn" lay-submit lay-filter="kllxs-submit">保存</button>
                </div>
            </div>
        </form>
    </div>
</div>

{include file="public/footer" /}
<script>

    layui.use(["form", "popup"], function () {
        var form = layui.form;
        var popup = layui.popup;

        form.on('submit(kllxs-submit)', function (data) {
            var field = data.field; // 获取表单全部字段值

            popup.formSubmit("", field)

            return false; // 阻止默认 form 跳转
        })
    })
</script>